<include file="../header" />
<body class="J_scroll_fixed">
    <script>


    </script>
<form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('address/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            名称：<input type="text" name="name-like" value="{$name}" />
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn" href="{:U('address/index')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('address/index')}">地址信息</a></li>
        <li><a href="{:U('address/add')}">添加地址</a></li>
    </ul>
    <table class="table table-hover table-bordered">
        <thead>
            <tr>
                <th>名称</th>
                <th>地址</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.name}</td>
                <td>{$vo.address}</td>
                <td>{$vo.create_time}</td>
                <td>
                    <a href='{:U("address/edit",array("id"=>$vo["address_id"]))}'>编辑</a>
                    <a href='{:U("address/delete",array("id"=>$vo["address_id"]))}'>删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>